﻿<Window x:Class="DoMoreWithVision.ConfigureWCFTimesheet.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="538" Width="595">
    <Grid Margin="0,0,2,8">
        <Grid.ColumnDefinitions>

            <ColumnDefinition Width="125*"/>
            <ColumnDefinition Width="175*"/>
            <ColumnDefinition Width="100*"/>
            <ColumnDefinition Width="175*"/>

        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="42"/>
            <RowDefinition Height="42"/>
            <RowDefinition Height="42"/>
            <RowDefinition Height="42"/>
            <RowDefinition Height="42"/>
            <RowDefinition Height="150*"/>
            <RowDefinition Height="150*"/>
            <RowDefinition Height="42*"/>
            <RowDefinition Height="42*"/>
        </Grid.RowDefinitions>
        <Button Name="btnAddProject" Content="Add Project Field" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="0" Grid.Row="0" Click="btnAddProject_Click" Margin="11" Height="20" Width="94" />
        <ComboBox Name="cmbProject" Grid.Row="0"  Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Width="120" Margin="20,10,22,10" Height="22"/>
        <Button Name="btnAddDay" Content="Add Day Field" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="2" Grid.Row="0" Click="btnAddDay_Click" Margin="8,11,7,11" Height="20" Width="78" />
        <ComboBox Name="cmbDays" Grid.Row="0"  Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center" Width="120" Margin="20,10,21,10" Height="22"/>

        <Button Name="btnAddTkmaster" Content="Add Timesheet Field" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="0" Grid.Row="1" Click="btnAddTkmaster_Click" Height="20" Width="110" />
        <ComboBox Name="cmbTkMaster" Grid.Row="1"  Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Width="120" Margin="20,10,22,10" Height="22"/>
        <Button Name="btnAddTkdetail" Content="Add Detail Field" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="2" Grid.Row="1" Click="btnAddTkdetail_Click" Margin="2,11,3,11" Height="20" Width="88" />
        <ComboBox Name="cmbTkDetail" Grid.Row="1"  Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center" Width="120" Margin="20,10,21,10" Height="22"/>
        <TextBox x:Name="txtRule" Grid.Row="5" Grid.ColumnSpan="3" Grid.Column="1" HorizontalAlignment="Center" Height="66"  TextWrapping="Wrap"  VerticalAlignment="Center" Width="340" BorderBrush="Black"  BorderThickness="2" Margin="38,16" />

        <Button Name="btnAddEq" Content="Add Equals" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="0" Grid.Row="2" Height="20" Width="64" Click="btnAddEq_Click"   />
        <Button Name="btnAddNotEq" Content="Add Not Equal" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1" Grid.Row="2"   Height="20" Width="100" Click="btnAddNotEq_Click"   />
        <Button Name="btnAddLess" Content="Add Less" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="2" Grid.Row="2" Height="20" Width="51" Click="btnAddLess_Click"  />
        <Button Name="btnAddGreat" Content="Add Greater" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="3" Grid.Row="2"  Height="20" Width="75" Click="btnAddGreat_Click"  />
        <Button Name="btnAddAND" Content="Add AND" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="0" Grid.Row="3" Height="20" Width="64" Click="btnAddAND_Click"   />
        <Button Name="btnAddOR" Content="Add OR" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1" Grid.Row="3" Height="20" Width="64" Click="btnAddOR_Click"  />

        <Button Name="btnAddRule" Content="Add Rule" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1" Grid.Row="7" Height="20" Width="67" Click="btnAddRule_Click"  />
        <Button Name="btnUpdateRule" Content="Update Rule" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="2" Grid.Row="7" Height="20" Width="70" Click="btnUpdateRule_Click" />
        <Button Name="btnRemoveRule" Content="Remove Rule" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="3" Grid.Row="7" Height="20" Width="80" Click="btnRemoveRule_Click"  />

        <Button Name="btnOpen" Content="Open Web.Config" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="0" Grid.Row="8" Height="20" Width="100" Click="btnOpen_Click" />
        <Button Name="btnSave" Content="Save Config" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="3" Grid.Row="8" Height="20" Width="100" Click="btnSave_Click"  />
        <TextBox x:Name="txtError" Grid.Row="6" Grid.ColumnSpan="3" Grid.Column="1" HorizontalAlignment="Center" Height="50"  TextWrapping="Wrap"  VerticalAlignment="Center" Width="340" BorderBrush="Black"  BorderThickness="2" Margin="38,22,38,24" />
        <Label Content="Select Rule:" HorizontalAlignment="Right" Margin="0,11,1,1" Grid.Row="4" VerticalAlignment="Center" Width="80" Height="26"/>
        <Label Content="Rule:" HorizontalAlignment="Right" Margin="0,10,1,0" Grid.Row="5" VerticalAlignment="Top" Width="40" Height="26"/>
        <Label Content="Error:" HorizontalAlignment="Right" Margin="0,10,0,0" Grid.Row="6" VerticalAlignment="Top" Width="40" Height="26"/>
        <ComboBox Name="cmbRules" Grid.ColumnSpan="3" Grid.Column="1" HorizontalAlignment="Center" Grid.Row="4" VerticalAlignment="Center" Width="340" Height="22"  SelectionChanged="cmbRules_SelectionChanged"/>


    </Grid>
</Window>
